const router = require('koa-router')();
const index = require('./index');
const file = require('./files');
const menu = require('./menu');
const user = require('./user');

router.use('/', index.routes(), index.allowedMethods());
router.use('/file', file.routes(), file.allowedMethods());
router.use('/menu', menu.routes(), menu.allowedMethods());
router.use('/user', user.routes(), user.allowedMethods());

module.exports = router;
